package com.statistics.cloudpower.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author MeowParse
 * @date 2017/9/1.
 */
@Entity
@Table(name = "tbl_environment_statistics_month")
public class TblEnvironmentStatisticsMonth {

	private Integer id;
	private String mac;
	private int offset;
	private Integer maxPm25;
	private Integer maxTemperature;
	private Integer maxHumidity;
	private Integer maxCo2;
	private Integer maxNoise;
	private BigDecimal avgPm25;
	private BigDecimal avgTemperature;
	private BigDecimal avgHumidity;
	private BigDecimal avgCo2;
	private BigDecimal avgNoise;
	private Timestamp statisticsTime;

	public TblEnvironmentStatisticsMonth(){

	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Basic
	@Column(name = "mac")
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	@Basic
	@Column(name = "offset")
	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	@Basic
	@Column(name = "max_pm25")
	public Integer getMaxPm25() {
		return maxPm25;
	}

	public void setMaxPm25(Integer maxPm25) {
		this.maxPm25 = maxPm25;
	}

	@Basic
	@Column(name = "max_temperature")
	public Integer getMaxTemperature() {
		return maxTemperature;
	}

	public void setMaxTemperature(Integer maxTemperature) {
		this.maxTemperature = maxTemperature;
	}

	@Basic
	@Column(name = "max_humidity")
	public Integer getMaxHumidity() {
		return maxHumidity;
	}

	public void setMaxHumidity(Integer maxHumidity) {
		this.maxHumidity = maxHumidity;
	}

	@Basic
	@Column(name = "max_co2")
	public Integer getMaxCo2() {
		return maxCo2;
	}

	public void setMaxCo2(Integer maxCo2) {
		this.maxCo2 = maxCo2;
	}

	@Basic
	@Column(name = "max_noise")
	public Integer getMaxNoise() {
		return maxNoise;
	}

	public void setMaxNoise(Integer maxNoise) {
		this.maxNoise = maxNoise;
	}

	@Basic
	@Column(name = "avg_pm25")
	public BigDecimal getAvgPm25() {
		return avgPm25;
	}

	public void setAvgPm25(BigDecimal avgPm25) {
		this.avgPm25 = avgPm25;
	}

	@Basic
	@Column(name = "avg_temperature")
	public BigDecimal getAvgTemperature() {
		return avgTemperature;
	}

	public void setAvgTemperature(BigDecimal avgTemperature) {
		this.avgTemperature = avgTemperature;
	}

	@Basic
	@Column(name = "avg_humidity")
	public BigDecimal getAvgHumidity() {
		return avgHumidity;
	}

	public void setAvgHumidity(BigDecimal avgHumidity) {
		this.avgHumidity = avgHumidity;
	}

	@Basic
	@Column(name = "avg_co2")
	public BigDecimal getAvgCo2() {
		return avgCo2;
	}

	public void setAvgCo2(BigDecimal avgCo2) {
		this.avgCo2 = avgCo2;
	}

	@Basic
	@Column(name = "avg_noise")
	public BigDecimal getAvgNoise() {
		return avgNoise;
	}

	public void setAvgNoise(BigDecimal avgNoise) {
		this.avgNoise = avgNoise;
	}

	@Basic
	@Column(name = "statistics_time")
	public Timestamp getStatisticsTime() {
		return statisticsTime;
	}

	public void setStatisticsTime(Timestamp statisticsTime) {
		this.statisticsTime = statisticsTime;
	}
}
